// 例子26

var Person = function(name, age) {
    this.name = name;
    this.age = age;
    this.getName = function() {
        return this.name;
    }
}

var Tom = new Person('Tom', 20);
var Jerry = new Person('Jerry', 22);
console.log(Tom.getName());  // Tom
console.log(Tom instanceof Person); // true
console.log(Jerry.getName());  // Jerry
console.log(Jerry instanceof Person); // true
